import time

from selenium import webdriver
from selenium.webdriver.common.by import By

# Chrome浏览器
driver = webdriver.Chrome()
driver.get('https://quotes.toscrape.com')
time.sleep(1)
driver.find_element(By.XPATH, '//p/a ').click()
time.sleep(1)
username = driver.find_element(By.ID, 'username')
username.send_keys('root')
time.sleep(1)
password = driver.find_element(By.ID, 'password')
password.send_keys('root')
time.sleep(1)
driver.find_element(By.XPATH, '//input[@type="submit"]').click()
time.sleep(1)

input('------------------')


